@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

.single-el-table thead .el-table-column--selection .cell {
  display: none;
}

.err-msg {
  font-size: 12px;
  color: #f56c6c;
}

.richText-showBody {
  // padding: 0 25%;
  min-height: 300px;
  border: 1px solid #ddd;

  img {
    width: 50%;
  }
}

.el-table__body-wrapper {
  font-size: 12px;
}

.goods-form-label {
  width: 100px;
  line-height: 40px;
  background: #409eff;
  color: #fff;
  text-align: center;
  position: relative;

  &::after {
    content: "";
    position: absolute;
    top: 0;
    right: -40px;
    display: block;
    border: 20px solid;
    border-color: transparent transparent transparent #409eff;
  }
}

.goods-search-form .el-radio {
  margin-right: 10px !important;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: 0 !important;
}

.text-button-inactive {
  color: #999;
}

.self-table-wrapper {
  margin-bottom: 20px;

  .self-table {
    &-label {
      font-size: 14px;
      font-weight: bold;
      padding: 10px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    width: 100%;
    color: #666;
    border-collapse: collapse;
    border: 1px solid #ebeef5;
    text-align: center;

    td {
      padding: 20px 0;
      border: 1px solid #ebeef5;
    }

    td {
      padding: 20px 0;
    }

    tr:nth-child(odd) {
      font-size: 13px;
      font-weight: bold;
      color: #333;
    }
  }
}

.table-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  font-size: 14px;
  font-weight: bold;
  background-color: #fafafa;
}

.fixed-table {
  max-height: var(--fixed-table-maxheight);
  overflow-y: auto;
}
.dialog-footer__fixed {
  position: fixed;
  bottom: 100px;
  right: 10%;
  z-index: 999;
}

.text-over {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.el-table--enable-row-transition .el-table__body td {
  height: 80px;
  // min-height: 80px;
  // height: auto;
}
